class ClampBlock(object):
    def __init__(self, block, parent, rps=None):
        self.obj = block
        self.reference_name = self.obj.name
        self.clamp_left_str = self.reference_name + '/' + 'w_left'
        self.clamp_right_str = self.reference_name + '/' + 'w_right'
        self.parent = parent
        self.rps = rps
        self.construct()

    def construct(self):
        self.clamp_left_str = self.reference_name + '/' + 'w_left'
        self.clamp_right_str = self.reference_name + '/' + 'w_right'

    def get_clamp_point(self):
        return self.parent.get_point(self.obj.name + "/box_left.-z")

    def get_clamp_plane(self):
        return self.parent.get_plane(self.obj.name + "/box_left.-z")

    def get_clamp_side_plane(self):
        return self.parent.get_plane(self.obj.name + "/box_left.-x")
